package com.wframe.project.jnd.vo;

/**
 * Created by lwb on 2017/5/4.
 */
public class PageContext {

    private static ThreadLocal<Integer> pageNo = new ThreadLocal<>();

    public static int getPageNo() {
        Integer pn = pageNo.get();
        if (pn == null) {
            return 0;
        }
        return pn;
    }

    public static void setPageNo(int pageNoValue) {
        pageNo.set(pageNoValue);
    }

    public static void removePageNo() {
        pageNo.remove();
    }

}
